Optimal. Leaf size=273 \[ \frac{(-a)^{3/2} \cosh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{Chi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 b^{5/2}}-\frac{(-a)^{3/2} \cosh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Chi}\left (x d+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{2 b^{5/2}}-\frac{(-a)^{3/2} \sinh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{Shi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 b^{5/2}}-\frac{(-a)^{3/2} \sinh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Shi}\left (x d+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{2 b^{5/2}}-\frac{a \sinh (c+d x)}{b^2 d}+\frac{2 \sinh (c+d x)}{b d^3}-\frac{2 x \cosh (c+d x)}{b d^2}+\frac{x^2 \sinh (c+d x)}{b d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.728719, antiderivative size = 273, normalized size of antiderivative = 1., number of steps used = 14, number of rules used = 7, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.368, Rules used = {5293, 2637, 3296, 5281, 3303, 3298, 3301} \[ \frac{(-a)^{3/2} \cosh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{Chi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 b^{5/2}}-\frac{(-a)^{3/2} \cosh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Chi}\left (x d+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{2 b^{5/2}}-\frac{(-a)^{3/2} \sinh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{Shi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 b^{5/2}}-\frac{(-a)^{3/2} \sinh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Shi}\left (x d+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{2 b^{5/2}}-\frac{a \sinh (c+d x)}{b^2 d}+\frac{2 \sinh (c+d x)}{b d^3}-\frac{2 x \cosh (c+d x)}{b d^2}+\frac{x^2 \sinh (c+d x)}{b d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5293
Rule 2637
Rule 3296
Rule 5281
Rule 3303
Rule 3298
Rule 3301
Rubi steps
\begin{align*} \int \frac{x^4 \cosh (c+d x)}{a+b x^2} \, dx &=\int \left (-\frac{a \cosh (c+d x)}{b^2}+\frac{x^2 \cosh (c+d x)}{b}+\frac{a^2 \cosh (c+d x)}{b^2 \left (a+b x^2\right )}\right ) \, dx\\ &=-\frac{a \int \cosh (c+d x) \, dx}{b^2}+\frac{a^2 \int \frac{\cosh (c+d x)}{a+b x^2} \, dx}{b^2}+\frac{\int x^2 \cosh (c+d x) \, dx}{b}\\ &=-\frac{a \sinh (c+d x)}{b^2 d}+\frac{x^2 \sinh (c+d x)}{b d}+\frac{a^2 \int \left (\frac{\sqrt{-a} \cosh (c+d x)}{2 a \left (\sqrt{-a}-\sqrt{b} x\right )}+\frac{\sqrt{-a} \cosh (c+d x)}{2 a \left (\sqrt{-a}+\sqrt{b} x\right )}\right ) \, dx}{b^2}-\frac{2 \int x \sinh (c+d x) \, dx}{b d}\\ &=-\frac{2 x \cosh (c+d x)}{b d^2}-\frac{a \sinh (c+d x)}{b^2 d}+\frac{x^2 \sinh (c+d x)}{b d}-\frac{(-a)^{3/2} \int \frac{\cosh (c+d x)}{\sqrt{-a}-\sqrt{b} x} \, dx}{2 b^2}-\frac{(-a)^{3/2} \int \frac{\cosh (c+d x)}{\sqrt{-a}+\sqrt{b} x} \, dx}{2 b^2}+\frac{2 \int \cosh (c+d x) \, dx}{b d^2}\\ &=-\frac{2 x \cosh (c+d x)}{b d^2}+\frac{2 \sinh (c+d x)}{b d^3}-\frac{a \sinh (c+d x)}{b^2 d}+\frac{x^2 \sinh (c+d x)}{b d}-\frac{\left ((-a)^{3/2} \cosh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\cosh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{\sqrt{-a}+\sqrt{b} x} \, dx}{2 b^2}-\frac{\left ((-a)^{3/2} \cosh \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\cosh \left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{\sqrt{-a}-\sqrt{b} x} \, dx}{2 b^2}-\frac{\left ((-a)^{3/2} \sinh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\sinh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{\sqrt{-a}+\sqrt{b} x} \, dx}{2 b^2}+\frac{\left ((-a)^{3/2} \sinh \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\sinh \left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{\sqrt{-a}-\sqrt{b} x} \, dx}{2 b^2}\\ &=-\frac{2 x \cosh (c+d x)}{b d^2}+\frac{(-a)^{3/2} \cosh \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Chi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 b^{5/2}}-\frac{(-a)^{3/2} \cosh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Chi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{2 b^{5/2}}+\frac{2 \sinh (c+d x)}{b d^3}-\frac{a \sinh (c+d x)}{b^2 d}+\frac{x^2 \sinh (c+d x)}{b d}-\frac{(-a)^{3/2} \sinh \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Shi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{2 b^{5/2}}-\frac{(-a)^{3/2} \sinh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Shi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{2 b^{5/2}}\\ \end{align*}
Mathematica [C] time = 0.418781, size = 274, normalized size = 1. \[ \frac{i a^{3/2} d^3 \cosh \left (c-\frac{i \sqrt{a} d}{\sqrt{b}}\right ) \text{CosIntegral}\left (-\frac{\sqrt{a} d}{\sqrt{b}}+i d x\right )-i a^{3/2} d^3 \cosh \left (c+\frac{i \sqrt{a} d}{\sqrt{b}}\right ) \text{CosIntegral}\left (\frac{\sqrt{a} d}{\sqrt{b}}+i d x\right )-a^{3/2} d^3 \sinh \left (c-\frac{i \sqrt{a} d}{\sqrt{b}}\right ) \text{Si}\left (\frac{\sqrt{a} d}{\sqrt{b}}-i d x\right )-a^{3/2} d^3 \sinh \left (c+\frac{i \sqrt{a} d}{\sqrt{b}}\right ) \text{Si}\left (i x d+\frac{\sqrt{a} d}{\sqrt{b}}\right )-2 a \sqrt{b} d^2 \sinh (c+d x)+2 b^{3/2} d^2 x^2 \sinh (c+d x)+4 b^{3/2} \sinh (c+d x)-4 b^{3/2} d x \cosh (c+d x)}{2 b^{5/2} d^3} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.189, size = 369, normalized size = 1.4 \begin{align*} -{\frac{{{\rm e}^{-dx-c}}{x}^{2}}{2\,bd}}+{\frac{{{\rm e}^{-dx-c}}a}{2\,d{b}^{2}}}-{\frac{{{\rm e}^{-dx-c}}x}{b{d}^{2}}}-{\frac{{{\rm e}^{-dx-c}}}{{d}^{3}b}}-{\frac{{a}^{2}}{4\,{b}^{2}}{{\rm e}^{-{\frac{1}{b} \left ( d\sqrt{-ab}+cb \right ) }}}{\it Ei} \left ( 1,-{\frac{1}{b} \left ( d\sqrt{-ab}- \left ( dx+c \right ) b+cb \right ) } \right ){\frac{1}{\sqrt{-ab}}}}+{\frac{{a}^{2}}{4\,{b}^{2}}{{\rm e}^{{\frac{1}{b} \left ( d\sqrt{-ab}-cb \right ) }}}{\it Ei} \left ( 1,{\frac{1}{b} \left ( d\sqrt{-ab}+ \left ( dx+c \right ) b-cb \right ) } \right ){\frac{1}{\sqrt{-ab}}}}-{\frac{{a}^{2}}{4\,{b}^{2}}{{\rm e}^{{\frac{1}{b} \left ( d\sqrt{-ab}+cb \right ) }}}{\it Ei} \left ( 1,{\frac{1}{b} \left ( d\sqrt{-ab}- \left ( dx+c \right ) b+cb \right ) } \right ){\frac{1}{\sqrt{-ab}}}}+{\frac{{a}^{2}}{4\,{b}^{2}}{{\rm e}^{-{\frac{1}{b} \left ( d\sqrt{-ab}-cb \right ) }}}{\it Ei} \left ( 1,-{\frac{1}{b} \left ( d\sqrt{-ab}+ \left ( dx+c \right ) b-cb \right ) } \right ){\frac{1}{\sqrt{-ab}}}}+{\frac{{{\rm e}^{dx+c}}{x}^{2}}{2\,bd}}-{\frac{a{{\rm e}^{dx+c}}}{2\,d{b}^{2}}}-{\frac{{{\rm e}^{dx+c}}x}{b{d}^{2}}}+{\frac{{{\rm e}^{dx+c}}}{{d}^{3}b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.19521, size = 1296, normalized size = 4.75 \begin{align*} -\frac{8 \, b d x \cosh \left (d x + c\right ) +{\left ({\left (a d^{2} \cosh \left (d x + c\right )^{2} - a d^{2} \sinh \left (d x + c\right )^{2}\right )} \sqrt{-\frac{a d^{2}}{b}}{\rm Ei}\left (d x - \sqrt{-\frac{a d^{2}}{b}}\right ) +{\left (a d^{2} \cosh \left (d x + c\right )^{2} - a d^{2} \sinh \left (d x + c\right )^{2}\right )} \sqrt{-\frac{a d^{2}}{b}}{\rm Ei}\left (-d x + \sqrt{-\frac{a d^{2}}{b}}\right )\right )} \cosh \left (c + \sqrt{-\frac{a d^{2}}{b}}\right ) -{\left ({\left (a d^{2} \cosh \left (d x + c\right )^{2} - a d^{2} \sinh \left (d x + c\right )^{2}\right )} \sqrt{-\frac{a d^{2}}{b}}{\rm Ei}\left (d x + \sqrt{-\frac{a d^{2}}{b}}\right ) +{\left (a d^{2} \cosh \left (d x + c\right )^{2} - a d^{2} \sinh \left (d x + c\right )^{2}\right )} \sqrt{-\frac{a d^{2}}{b}}{\rm Ei}\left (-d x - \sqrt{-\frac{a d^{2}}{b}}\right )\right )} \cosh \left (-c + \sqrt{-\frac{a d^{2}}{b}}\right ) - 4 \,{\left (b d^{2} x^{2} - a d^{2} + 2 \, b\right )} \sinh \left (d x + c\right ) +{\left ({\left (a d^{2} \cosh \left (d x + c\right )^{2} - a d^{2} \sinh \left (d x + c\right )^{2}\right )} \sqrt{-\frac{a d^{2}}{b}}{\rm Ei}\left (d x - \sqrt{-\frac{a d^{2}}{b}}\right ) -{\left (a d^{2} \cosh \left (d x + c\right )^{2} - a d^{2} \sinh \left (d x + c\right )^{2}\right )} \sqrt{-\frac{a d^{2}}{b}}{\rm Ei}\left (-d x + \sqrt{-\frac{a d^{2}}{b}}\right )\right )} \sinh \left (c + \sqrt{-\frac{a d^{2}}{b}}\right ) +{\left ({\left (a d^{2} \cosh \left (d x + c\right )^{2} - a d^{2} \sinh \left (d x + c\right )^{2}\right )} \sqrt{-\frac{a d^{2}}{b}}{\rm Ei}\left (d x + \sqrt{-\frac{a d^{2}}{b}}\right ) -{\left (a d^{2} \cosh \left (d x + c\right )^{2} - a d^{2} \sinh \left (d x + c\right )^{2}\right )} \sqrt{-\frac{a d^{2}}{b}}{\rm Ei}\left (-d x - \sqrt{-\frac{a d^{2}}{b}}\right )\right )} \sinh \left (-c + \sqrt{-\frac{a d^{2}}{b}}\right )}{4 \,{\left (b^{2} d^{3} \cosh \left (d x + c\right )^{2} - b^{2} d^{3} \sinh \left (d x + c\right )^{2}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{4} \cosh{\left (c + d x \right )}}{a + b x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{4} \cosh \left (d x + c\right )}{b x^{2} + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]